package com.wpen.unit.web.dto.system;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.wpen.unit.commun.BaseRequest;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "登录-请求")
@Data
@EqualsAndHashCode(callSuper = false)
public class LoginRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 3748013572408380531L;

    @Schema(description = "登录用户名")
    @NotEmpty
    @Size(min = 4, max = 32)
    private String userName;

    @Schema(description = "加密密码")
    @NotEmpty
    @Size(min = 6, max = 1024)
    private String enPwd;

}